<?php echo $this->Section->main();?>
<div id="content_repeat">

			<?php if($session->check("Auth.User.id")){?>
			<h2><?php __("Wyloguj się")?></h2>
			<?php echo $session->read("Auth.User.email")?> | 
			<?php echo $html->link(__("wylogowanie z panela",true),array('plugin'=>false,'controller'=>'users','action'=>'logout'),array('class'=>'button'));?>
			<?php }else{?>
			<h2><?php __("Panel administracyjny")?></h2>
			<div class="text-content">
				<?php echo $this->Form->create('User', array('url' => array('controller' => 'users', 'action' =>'login')));?>
					
				<?php echo $this->Form->input('email',array('label'=>__('e-mail',true),'after'=>'<span class="after">'.__('Proszę podać adres e-mail',true).'</span>'))?>
				<?php echo $this->Form->input('password',array('label'=>__('hasło',true),'after'=>'<span class="after">'.__('Proszę podać hasło',true).'</span>'))?>
				<br/>
				<?php echo $html->link(__("Zapomniałem hasło?",true),array('controller'=>'users','action'=>'new_password'));?>
			
				<?php echo $this->Form->end(__('Zaloguj się',true));?>
			</div>
			<?php }?>


	<div class="clear">&nbsp;</div>
</div>